home *** CD-ROM | disk | FTP | other *** search
- Path: dispatch.news.demon.net!demon!redifon.demon.co.uk
- From: Guy Pickering <gp@redifon.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: casting 'char **' to 'const char**'
- Date: Wed, 20 Mar 1996 13:53:06 GMT
- Organization: Redifon MEL Ltd
- Message-ID: <827329986.5426@redifon.demon.co.uk>
- NNTP-Posting-Host: redifon.demon.co.uk
- X-NNTP-Posting-Host: redifon.demon.co.uk
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4c)
- MIME-Version: 1.0
- X-URL: news:comp.lang.c
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
-
- While my compiler is happy with me passing a 'char*' to a function
- requiring a 'const char*', it is not happy about passing a 'char**'
- to a function expecting a 'const char**'. I cannot seem to find any
- refs to this in K&R. What is the correct behaviour?
-
- Many thanks,
-
- Guy
-
- --
- Name: Guy Pickering B.Eng A.M.I.E.E
- Position: Software Engineer
- Company: Redifon MEL Ltd, Newton Rd, Crawley,
- West Sussex, RH10 2TU. ENGLAND
- Tel: +44 (0)1293 518855 Fax: +44 (0)1293 530101
- Mobile: +44 (0)973 129362 (Orange)
-
-